package top.chmin.project.cloud.common.entity.auto;

// field import auto
// #bind.field.tableCode#

import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RestController;
import top.chmin.project.cloud.common.entity.Page;

import java.util.List;

/**
 * chmin
 * 2023-12-27 14:43:40
 * cloud-builder
 */
@RestController
public class EntityController implements
// entity selectInterface auto
        EntityTableCodeSelect,
// entity searchInterface auto
        EntitySave,
        EntityUpdateById,
        EntityDeleteById,
        EntitySelectById,
        EntitySelectPage {

    @Resource
    EntityService service;

    @Override
    public int save(EntitySave.Param param) {
        return service.save(param);
    }

    @Override
    public int updateById(EntityUpdateById.Param param) {
        return service.updateById(param);
    }

    @Override
    public int deleteById(EntityDeleteById.Param param) {
        return service.deleteById(param);
    }

    @Override
    public EntitySelectById.Result selectById(EntitySelectById.Param param) {
        return service.selectById(param);
    }

    @Override
    public Page<EntitySelectPage.Result> selectPage(EntitySelectPage.Param param) {
        return service.selectPage(param);
    }

    // entity select auto
    @Override
    public List<EntityTableCodeSelect.Result> selectTableCode(EntityTableCodeSelect.Param param) {
        return service.selectTableCode(param);
    }


// entity search auto

}
